Skip to content

Add variables for xml.fileAssociations#334

Merged
angelozerr merged 1 commit intoredhat-developer:masterfrom
datho7561:307-variables-in-file-associations
Oct 30, 2020
Merged

Add variables for xml.fileAssociations#334
angelozerr merged 1 commit intoredhat-developer:masterfrom
datho7561:307-variables-in-file-associations

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

Adds three variables that can be used in xml.fileAssociations:

  • ${workspaceFolder}
  • ${fileDirname}
  • ${fileBasenameNoExtension}

These variables can be used for both the pattern and the systemId.

Closes #307

Signed-off-by: David Thompson davthomp@redhat.com

@datho7561
Copy link
Copy Markdown
Contributor Author

datho7561 commented Oct 2, 2020

This change is client only: the variables only in vscode-xml, not any of the other clients that LemMinX supports.

Still need to:

  • Clean up the code
  • Add documentation in wiki we are moving the wiki contents to the docs folder
  • Add documentation to internal documents
  • Detect if there is no change in settings on tab change (i.e. there is no fileDirname or fileBasenameNoExtension references in the settings), and don't rebroadcast settings

@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch 3 times, most recently from 5cd3a2f to 7e10726 Compare October 5, 2020 15:01
@datho7561 datho7561 marked this pull request as ready for review October 5, 2020 15:09
@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch 2 times, most recently from 20eedb1 to cef9c32 Compare October 7, 2020 17:41
@datho7561 datho7561 requested a review from angelozerr October 7, 2020 17:42
@fbricon
Copy link
Copy Markdown
Collaborator

fbricon commented Oct 13, 2020

please rebase against master

@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch from cef9c32 to 517a905 Compare October 13, 2020 17:10
@datho7561
Copy link
Copy Markdown
Contributor Author

datho7561 commented Oct 13, 2020

I messed up the rebase, one second... Okay should be fixed

@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch 2 times, most recently from 517a905 to 9d63ce5 Compare October 13, 2020 17:20
Comment thread src/extension.ts Outdated
Comment thread src/extension.ts Outdated
Comment thread src/extension.ts Outdated
Comment thread src/extension.ts Outdated
@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch from 9d63ce5 to 64a4ec1 Compare October 27, 2020 20:00
Comment thread src/extension.ts Outdated
Comment thread src/variableReference.ts Outdated
Comment thread src/extension.ts Outdated
@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch from 64a4ec1 to 1daefbf Compare October 28, 2020 17:08
Comment thread src/variableSubstitution.ts Outdated
Adds three variables that can be used in `xml.fileAssociations`:
 * ${workspaceFolder}
 * ${fileDirname}
 * ${fileBasenameNoExtension}

These variables can be used for both the `pattern` and the `systemId`.

Closes redhat-developer#307

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch from 1daefbf to d9582c6 Compare October 28, 2020 18:06
Copy link
Copy Markdown
Contributor

@angelozerr angelozerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @datho7561 !

@angelozerr angelozerr merged commit 72cce61 into redhat-developer:master Oct 30, 2020
@datho7561 datho7561 deleted the 307-variables-in-file-associations branch January 18, 2021 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow support for variable and different file path notations in xml.FileAssociations

3 participants